permuting two arrays hackerrank solution python

visit shbcf.ru